package models

import (
	"goapp-web-server/app/utils/orm"
)

type CmsReply struct {
	Model      `xorm:"extends"`
	TopicType  int8   `json:"topic_type" xorm:"topic_type default '0' ENUM('0','1')"`
	TopicId    int32  `json:"topic_id" xorm:"topic_id"`
	Content    string `json:"content" xorm:"content"`
	FromUserId string `json:"from_userid" xorm:"from_userid"`
	ToUserId   string `json:"to_userid" xorm:"to_userid"`
}

func (u CmsReply) TableName() string {
	return "cms_reply"
}

func init() {
	orm.RegisterModel(&CmsReply{})
}
